﻿<CodeSnippets
    xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
    <CodeSnippet Format="1.0.0">
        <Header>
            <Title>
                Text Block
            </Title>
        </Header>
        <Snippet>
			<Declarations>
                <Literal>
                    <ID>texblockStyle</ID>
                    <ToolTip>style of textblock</ToolTip>
                    <Default>texblockStyle</Default>
                </Literal>
                <Literal>
					          <ID>name</ID>
                    <ToolTip>name of textblock</ToolTip>
                    <Default>name</Default>
                </Literal>
                <Literal>
                  <ID>rowNumber</ID>
                  <ToolTip>row number in table</ToolTip>
                  <Default>rowNumber</Default>
                </Literal>

                <Literal>
                <ID>colNumber</ID>
                <ToolTip>column number in table</ToolTip>
                <Default>columnNumber</Default>
                </Literal>

                <Literal>
                  <ID>colSpan</ID>
                  <ToolTip>column span </ToolTip>
                  <Default>6</Default>
                </Literal>

                <Literal>
                  <ID>textSourceBinding</ID>
                  <ToolTip>text Source binding</ToolTip>
                  <Default>Localization</Default>
                </Literal>


			</Declarations>

			<Code Language="CSharp">
				<![CDATA[
  <TextBlock x:Name="$name$" Style="{StaticResource texblockStyle}" 
        Grid.Row="$rowNumber$" Grid.Column="$colNumber$" Grid.ColumnSpan="$colSpan$" 
       Text="{Binding ConverterParameter=$name$, Converter={StaticResource $textSourceBinding$}, Source={StaticResource $textSourceBinding$}}" />
				]]>
			</Code>
        </Snippet>
    </CodeSnippet>
</CodeSnippets>
	